//
// DefaultIRQAction.h
// Usage: Default "irq action" routine used by normal irq
//        ( e.g. all irq beside irq0 )
// Create Date: 2009-02-17
// Creator: MaJiuyue
//
#ifndef _DEFAULT_IRQACTION_H_
#define _DEFAULT_IRQACTION_H_

#include "IRQAction.h"

#define SA_REOPEN_IRQ		1		/* Reopen IRQ immediately after action finished */

class DefaultIRQAction : public IRQAction
{
private:
	u32 flags;
	pid_t pid;		// target process id

public:
	DefaultIRQAction(pid_t pid, u32 flags) : pid(pid), flags(flags) {};
	virtual void operator() (u32 irq, regs_t *regs);
};

#endif

